package com.example.demo.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by User on 2017/9/14.
 */
@RestController
public class LogbackController {

    private static final Logger log = LoggerFactory.getLogger(LogbackController.class);

    @RequestMapping("level")
    public void level() {
        log.trace("test log trace");
        log.debug("test log debug");
        log.info("test log info");
        log.warn("test log warn");
        log.error("test log error");
    }

}
